// +FHDR------------------------------------------------------------
//                 Copyright (c) 2024 NOVAUTO.
//                       ALL RIGHTS RESERVED
// -----------------------------------------------------------------
// Filename      : sanity_case.sv
// Author        : ICer
// Created On    : 2024-02-05 11:03
// Last Modified : 2024-02-05 11:33 by ICer
// -----------------------------------------------------------------
// Description:
//
//
// -FHDR------------------------------------------------------------

class sanity_case_data extends pkt_data;
	constraint pkt_len_cons{
		pkt_len == 10;
	};
endclass

class sanity_case extends base_test;

	extern function new(input virtual pkt_if_pack bus);
	extern virtual task build();
	extern virtual task run();

endclass: sanity_case

function sanity_case::new(input virtual pkt_if_pack bus);
  super.new(bus);
  pkt = sanity_case_data::new();
endfunction: new

task sanity_case::build();
  env.build();
	env.gen.send_num = 10;
  env.gen.pkt = this.pkt;
endtask: build

task sanity_case::run();
  env.run();
endtask: run
